<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN" "http://www.w3.org/TR/htmL1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="./inc/css/common.css">
<script language="javascript" src="./script/BDADM_Auth.js"></script>
</head>
<body>
<input type="hidden" name="menu" value="<s:property value="menu"/>">

<s:hidden name="select" id="select" />
<s:hidden name="change_data" id="change_data" /><!-- access_yn update dates -->

	<table class="admininfo_tbl">
		<tr>
			<th><input type="checkbox" name="selectAll" onclick="selectCheck()"/></th>
			<th>메뉴</th>
			<th>주소</th>
			<th>상태</th>
			<th>메뉴순서</th>
		</tr>
		<s:iterator value="list">
			<tr>			
				<td>
					<input type="checkbox" name="check" value="<s:property value="menu_code" />" />
				</td>
				<td align="center">
					<s:if test='menu_sort == "0"'>
						<font style="font-weight: bold;">
						<a href="" onclick="return fnc_BDADM_Manager('<s:property value="menu_code"/>')"><s:property value="menu_nm" /></a>
						</font>
					</s:if>
					<s:else>
						<a href="" onclick="return fnc_BDADM_Manager('<s:property value="menu_code"/>')"><s:property value="menu_nm" /></a>
					</s:else>
				</td>
				<td align="center"><s:property value="menu_url"/><s:hidden name="menu_url" /></td>
				<td align="center">
					<s:if test='access_yn == "불가"'><font color="red"><s:property value="access_yn"/></font></s:if><s:else><s:property value="access_yn"/></s:else>
					<%-- <s:select name="access_yn" list="#{'허용':'허용' , '불가':'불가'}" theme="simple"></s:select> --%>
				</td>
				<s:if test='menu_sort != "0"'>
					<td align="center">						
						<s:property value="menu_sort"/>
					</td>
				</s:if>
				<s:else>
					<td>
						<font style="font-weight: bold;">
							<s:property value="menu_group_sort"/>
						</font>
					</td>
				</s:else>
			</tr>
		</s:iterator>
				<s:hidden name="access_yn"/>
				<input type="hidden" name="size" value="<s:property value="size"/>"/> 
	</table>
	<s:if test="searchResult != 0">
		<div align="right">
			<input type="image" src="/images/btn_adm.gif" value="허용" onclick="return fnc_access_yn('Y')"/>			
			<input type="image" src="./images/btn_imp.gif" value="불가" onclick="return fnc_access_yn('N')"/>	
		</div>
	</s:if>
</body>
</html>